package dto

type HeaderReq struct {
	Token string `header:"token"`
}

type LoginReq struct {
	Username string `form:"username" json:"username" xml:"username" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
	ClientIP string `form:"client_ip" json:"client_ip"`
}

type ChangePwd struct {
	Token     string `form:"token" json:"token" binding:"required"`
	OriginPwd string `form:"origin_pwd" json:"origin_pwd" binding:"required"`
	NewPwd    string `form:"new_pwd" json:"new_pwd" binding:"required"`
}

type GetResetPwdLinkReq struct {
	Email string `form:"email" json:"email"`
}

type ResetPwdReq struct {
	Email     string `form:"email" json:"email"`
	VerifyKey string `form:"verify_key" json:"verify_key"`
	NewPwd    string `form:"new_pwd" json:"new_pwd"`
}

type UpdateUserinfo struct {
	Username string `form:"username" json:"username"`
	Password string `form:"password" json:"password"`
	Email    string `form:"email" json:"email"`
	Mobile   string `form:"email" json:"mobile"`
}
